import Vue from 'vue'
// import VueI18n from 'vue-i18n'

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';

// 全局处理数据方法

import { setGrapData } from './utils/setGraphicData'
Vue.prototype.$setGrapData = setGrapData

Vue.config.productionTip = false

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
// import '../theme/index.css'
Vue.use(ElementUI);
// import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n

import '@/styles/index.scss' // global css

// fade/zoom 等
import 'element-ui/lib/theme-chalk/base.css';

import {i18n} from '@/i18n/index'

import App from './App'
import router from './router'
import store from './store'

import '@/icons' // icon
import '@/permission' // permission control

// import '../mock-server/index'

import echarts from "echarts"
Vue.prototype.$echarts = echarts

import { WidthList, COLORLIST} from '@/utils/variate'
Vue.prototype.$WidthList = WidthList
Vue.prototype.$COLORLIST = COLORLIST

// 图片懒加载
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: require('./assets/imgs/imgerr.jpg'),
  loading: require('./assets/imgs/imgerr.jpg'),
  attempt: 1
})

// import VuePhotoZoomPro from 'vue-photo-zoom-pro' //图片放大
// Vue.use(VuePhotoZoomPro)

// Vue.use(ElementUI, {
//   locale
// })

Vue.use(Antd)
new Vue({
  el: '#app',
  router,
  i18n,
  store,
  render: h => h(App)
})